// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.brest.managesambafilesharing;

import java.util.Date;

import android.text.format.DateFormat;

// Referenced classes of package com.funkyfresh.samba:
//            LOG, samba

public class Misc {

	public Misc() {
	}

	/*
	 * public static final String getAppVersionName(Context context) {
	 * PackageInfo packageinfo1 =
	 * context.getPackageManager().getPackageInfo("com.funkyfresh.samba", 128);
	 * PackageInfo packageinfo = packageinfo1; _L1:
	 * android.content.pm.PackageManager.NameNotFoundException
	 * namenotfoundexception; String s; if(packageinfo == null) s = "unknown";
	 * else s = (new
	 * StringBuilder()).append(packageinfo.versionName).toString(); return s;
	 * namenotfoundexception; packageinfo = null; goto _L1 }
	 * 
	 * public static final int getAppVersionNum(Context context) { PackageInfo
	 * packageinfo1 =
	 * context.getPackageManager().getPackageInfo("com.funkyfresh.samba", 128);
	 * PackageInfo packageinfo = packageinfo1; _L1:
	 * android.content.pm.PackageManager.NameNotFoundException
	 * namenotfoundexception; int i; if(packageinfo == null) i = 0; else i =
	 * packageinfo.versionCode; return i; namenotfoundexception; packageinfo =
	 * null; goto _L1 }
	 */
	public static final String getDateTime() {
		return DateFormat.format("yyyy-MM-dd_kk-mm-ss", new Date()).toString();
	}

	/*
	 * public static final String getExternalStorageName() { return
	 * Environment.getExternalStorageDirectory().getPath(); }
	 * 
	 * public static final boolean isValidString(String s, String s1) { boolean
	 * flag = false; if(s != null && s.length() >= 1 && s1 != null &&
	 * s1.length() >= 1) { label0: { char ac[] = s.toCharArray(); char ac1[] =
	 * s1.toCharArray(); int i = ac.length; char c; boolean flag1; int k; int l;
	 * for(int j = 0; j < i; j++) break label0;
	 * 
	 * flag = true; } } return flag; c = ac[j]; flag1 = false; k = ac1.length; l
	 * = 0; do { label1: { if(l < k) { label2: { if(c != ac1[l]) break label2;
	 * flag1 = true; } } if(flag1) break label1; LOG.i((new
	 * StringBuilder("invalid character in string: ")).append(s).toString());
	 * if(true) break MISSING_BLOCK_LABEL_26; l++; } } while(true); if(true)
	 * goto _L2; else goto _L1 _L2: break MISSING_BLOCK_LABEL_26; _L1: }
	 */
	/*
	 * public static final void notificationBarIcon(Context context, boolean
	 * flag) { NotificationManager notificationmanager = (NotificationManager)
	 * context .getSystemService("notification"); LOG.d((new
	 * StringBuilder("nAction=")).append(flag).toString()); if (!flag) {
	 * notificationmanager.cancelAll(); } else { Notification notification = new
	 * Notification(0x7f020001, "Samba Filesharing",
	 * System.currentTimeMillis()); PendingIntent pendingintent =
	 * PendingIntent.getActivity(context, 0, new Intent(context, com /
	 * funkyfresh / samba / samba), 0); notification.flags = 4 |
	 * notification.flags; notification.flags = 2 | notification.flags;
	 * notification.flags = 0x20 | notification.flags;
	 * notification.setLatestEventInfo(context, "Samba Filesharing is ON",
	 * "Select to open the user interface", pendingintent);
	 * notificationmanager.notify(1, notification); } }
	 */

	public static final String BASEDIR = "/data/data/com.funkyfresh.samba/files/";
	// public static final boolean DEV_BUILD;
}
